package com.umgsai.thread.thread01;

public class MyThread9 extends Thread {

	@Override
	public void run() {
		super.run();
		for (int i = 0; i < 500000; i++) {
			System.out.println("i = " + i);
		}
	}
	
	public static void main(String[] args) {
		try {
			MyThread9 thread = new MyThread9();
			thread.start();
			Thread.sleep(1000);
			thread.interrupt();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
